package com.zzyl.serve.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 执行护理任务DTO
 */
@Data
@ApiModel(description = "执行护理任务请求参数")
public class ExecuteTaskDTO {

    @ApiModelProperty(value = "护理任务ID", required = true, example = "1001")
    @NotNull(message = "任务ID不能为空")
    private Long taskId;

    @ApiModelProperty(value = "实际执行时间", required = true, example = "2024-09-28 08:30:00")
    @NotNull(message = "执行时间不能为空")
    private LocalDateTime realServerTime; // 接口文档

    @ApiModelProperty(value = "执行记录", required = true)
    @NotBlank(message = "执行记录不能为空")
    private String mark;

    @ApiModelProperty(value = "执行图片URL")
    private String taskImage;
}